
import Page from '@/components/Layout'
import ScoreLayout from '@/components/ScoreLayout'
import { getLiveInfoForId } from '@/common/liveData'
const Index = (props) => <ScoreLayout {...props}></ScoreLayout>
Index.getLayout = (page, props) => {
  return (
    <Page header footer {...props}>
      {page}
    </Page >
  )
}
export async function getServerSideProps (context) {
  const matchType = process.env.NEXT_PUBLIC_Basketball
  const props = await getLiveInfoForId(matchType, context)
  return {
    props
  }
}


export default Index